package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line = "abc123abc123abc123abc123abc123";
        String[] data = line.split("[0-9]+");
        System.out.println(Arrays.toString(data));

        line=".123.456...789...";
        String[] split = line.split("\\.");
        System.out.println(Arrays.toString(split));
    }
}
